<?php

namespace YouBaoLian\Application\Info;

class ChargingPostList extends InfoList
{
    /**
     * @return array
     */
    public function getList(): array
    {
        return $this->list;
    }

    public function append(
        string $chargingPostAddressType,
        string $chargingPostKind,
        string $chargingPostYearLimit,
        string $subjectName,
        string $chargingPostAddress = '',
        string $chargingPostCode = '',
        string $chargingPostType = '')
    {
        $this->list[] = [
            'chargingPostAddress' => $chargingPostAddress,
            'chargingPostAddressType'=> $chargingPostAddressType,
            'chargingPostCode' => $chargingPostCode,
            'chargingPostKind'=>$chargingPostKind,
            'chargingPostType'=>$chargingPostType,
            'chargingPostYearLimit'=>$chargingPostYearLimit,
            'subjectName'=>$subjectName
        ];
    }
}
